#ifndef __CIRCULAR_QUEUE_H__
#define __CIRCULAR_QUEUE_H__

#include<iostream>

using namespace std;

#define MAXQSIZE 10
typedef char QElemType;
typedef enum{
    ERROR, OK
}Status;

typedef struct{
    QElemType *buff;
    int front, rear;
}SqQueue;

Status InitQueue(SqQueue &Q);
bool Is_empty(SqQueue &Q);
bool Is_overflow(SqQueue &Q);
Status EnQueue(SqQueue &Q, QElemType e);
Status DeQueue(SqQueue &Q, QElemType &e);

#endif
